* nsmenu.m (ns_update_menubar): Call fillWithWidgetValue:setDelegate.
authorJan D. <jan.h.d@swipnet.se>
Sun, 11 Aug 2013 14:57:12 +0000 (16:57 +0200)
committerJan D. <jan.h.d@swipnet.se>
Sun, 11 Aug 2013 14:57:12 +0000 (16:57 +0200)
commit0fd45044fc7e7577ee1d3dc83ecebaf64af368d1
tree8f5be2d80ce4aa485c1f27e2d38e9e5f0230f151
parent99dd5a2d75da1cc4cadade2668d99ff18b64c50e
* nsmenu.m (ns_update_menubar): Call fillWithWidgetValue:setDelegate.
(x_activate_menubar): Update the whole menu.
(trackingNotification:): Call ns_check_menu_open if tracking ends.
(menuWillOpen:): Increment trackingMenu.  For OSX <= 10.6, exit if
current event is not NSSystemDefined.
Call ns_check_menu_open only if trackingMenu is 2.
(menuDidClose:): New method, decrease trackingMenu.
(fillWithWidgetValue:setDelegate:): New method.
(fillWithWidgetValue:): Call the above.

* nsterm.h (EmacsMenu): Add fillWithWidgetValue:setDelegate:

* nsterm.m (menu_pending_title, ns_get_pending_menu_title): Remove.
(ns_check_menu_open): Handle menu == nil.  Remove assignment to
menu_pending_title.
src/ChangeLog
src/nsmenu.m
src/nsterm.h
src/nsterm.m